/**
 * Created by Freeman on 2017/11/3.
 */

import {Dimensions, PixelRatio} from "react-native";

export const DEBUG = __DEV__

const ENVS = {
  production: {
    api_base_url: 'http://mifanxing.com/api/'
  },
  development: {
    api_base_url: 'http://192.168.1.138:8080/'
  }
}

export const ENV = ENVS[__DEV__ ? 'development' : 'production']

export const COLOR = {
  theme: '#1AAD19',
  favored: "#C71A22",
  textPrompt: "#929292",
  textNormal: "#5E5E5E",
  textEmpha: "#212121",
  textLightPrompt: "#EBEBEB",
  textLightNormal: "#FFFFFF",
  backgroundDarker: "#D6D6D6",
  backgroundNormal: "#EBEBEB",
  backgroundLighter: "#FFFFFF",
  backgroundDarkLighter: "#424242",
  backgroundDarkNormal: "#000000",
  backgroundNotice: "#FFFB00",
  linePrompt: "#EBEBEB",
  lineNormal: "#A9A9A9",
  lineEmpha: "#929292",
  primary: '#06C1AE',
  white:'#FFFFFF',
  indicatorColor: '#c21e25'
};

export const onePixel = 1 / PixelRatio.get()
export const width = Dimensions.get('window').width
export const height = Dimensions.get('window').height

